#ifndef MYLABEL_H
#define MYLABEL_H

#include <QWidget>
#include <QMouseEvent>
#include <QLabel>
class MyLabel : public QLabel
{
    Q_OBJECT
public:
    explicit MyLabel(QWidget *parent = nullptr);
    int posx;
    int posy;
    int dx[8] = {1,1,1,-1,-1,-1,0,0};
    int dy[8] = {1,0,-1,1,0,-1,1,-1};
    void mouseDoubleClickEvent(QMouseEvent * event);
    int num;
signals:
    void clean();
public slots:
};

#endif // MYLABEL_H
